#!/bin/csh -f
##################################################################
# Name stands for "call create_plots.pro" <- an IDL program.
##################################################################
#Copyright 2010 Bryan Killett
#
#This file is part of GAIA.
#
#GAIA is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#GAIA is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with GAIA. If not, see <http://www.gnu.org/licenses/>.
##################################################################

cd ../IDL

#Save whatever run.pro exists now.
mv run.pro run_old.pro

echo 'create_plots' >! run.pro
echo "exit" >> run.pro

idl run.pro

#Restore old run.pro
rm run.pro
mv run_old.pro run.pro
